package com.sp2.dev.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by IntelliJ IDEA.
 * User: zhimingli
 * Date: 14-2-8
 * Time: 下午2:10
 * To change this template use File | Settings | File Templates.
 */
@Controller
@RequestMapping("/ftl")
public class FtlController2 {

    @RequestMapping(value = "message")
    public String  message(HttpServletRequest request) {
        request.setAttribute("message", "用的是freemarker");
        return "message";
    }
}
